﻿using System;
using ArchiSimple.Windows.Test.TestClass;
using Xunit;

namespace ArchiSimple.Windows.Test
{
    public class LocatorTest
    {
        [Fact]
        public void TestLocate()
        {
            var viewModel = Locator.Locate<TestViewModel>(null);

            Assert.NotNull(viewModel);
            Assert.IsType(typeof(TestViewModel), viewModel);
            Assert.IsAssignableFrom(typeof(ViewModelBase), viewModel);
        }
    }
}
